#include "com_linc_lib_ShooterProxy.h"
//#include <stdio.h>
#include "shooter.h"
#include <android/log.h>

#define  LOG_TAG    "ShooterProxy:"
//#define  LOGD(...)  __android_log_print(ANDROID_LOG_DEBUG,LOG_TAG,__VA_ARGS__)
#define LOGD(...) ((void)__android_log_print(ANDROID_LOG_DEBUG, LOG_TAG, __VA_ARGS__))


JNIEXPORT jint JNICALL Java_com_linc_lib_ShooterProxy_A
  (JNIEnv *env, jclass obj, jint i) {
	//call shooter lib
	LOGD("method A() called! i: %d",i);
	if(i>0) 
		return 54321;
	else {
		int result = A(0);
		LOGD("call shooter A method.result:%d",result);
		return result;
	}
}

JNIEXPORT jstring JNICALL Java_com_linc_lib_ShooterProxy_B
  (JNIEnv *env, jclass obj, jstring string) {
/*
	LOGD("method B() called! string: %s",string);
	jclass class=(*env)->FindClass(env,"java/lang/String");
        jobjectArray string=(*env)->NewObjectArray(env,(jsize)length,
	            class,0);
*/

	//	TODO://2015.9.28
	return "";
}


